package homework;

import java.util.ArrayList;
import java.util.Random;

public class homework5 {
    public static void main(String[] args) {
    addList();
    }
    public static void addList(){
        ArrayList list=new ArrayList();
        Random random=new Random();
        while(list.size()<6){
            int i=random.nextInt(32)+1;
            list.add(i);
        }
        for (Object i:list) {
            System.out.println(i);
        }
    }
}
